/**
 * @className User_table
 * @author liuxuelin
 * @Date 2021/1/16
 * @version v1.0
 */

package com.hidt.shop.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Date;


//用户表实体类
public class User_table {
    private int id;//数据类型为整数 用户的编号
    private String user_name;//用户名只能由数字、字母组成，也就是登录名
    private String user_pwd;//用户的密码，长度不小于6
    private String user_realname;//用户的真实名字，只能由汉字组成
    private String user_gender;//用户性别，只能为‘男’或‘女’
    private String user_email;//用户的email,符合EMAIL格式
    private String user_phone;//用户的手机号码，符合手机号码格式：共11位，数字1开头，3,5,7,8,4为第二个数字
    private String user_id;//用户身份证，由18位数字组成，或者由17位数字组成，最后一位为X
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date user_birthdate;//用户的出生日期，符合2004-12-12格式
    private String user_address;//用户地址
    private int useris_delete;//数据是否：1为删除，0是不删除
    private String user_image;//用户图片

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getUser_pwd() {
        return user_pwd;
    }

    public void setUser_pwd(String user_pwd) {
        this.user_pwd = user_pwd;
    }

    public String getUser_realname() {
        return user_realname;
    }

    public void setUser_realname(String user_realname) {
        this.user_realname = user_realname;
    }

    public String getUser_gender() {
        return user_gender;
    }

    public void setUser_gender(String user_gender) {
        this.user_gender = user_gender;
    }

    public String getUser_email() {
        return user_email;
    }

    public void setUser_email(String user_email) {
        this.user_email = user_email;
    }

    public String getUser_phone() {
        return user_phone;
    }

    public void setUser_phone(String user_phone) {
        this.user_phone = user_phone;
    }

    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public Date getUser_birthdate() {
        return user_birthdate;
    }

    public void setUser_birthdate(Date user_birthdate) {
        this.user_birthdate = user_birthdate;
    }

    public String getUser_address() {
        return user_address;
    }

    public void setUser_address(String user_address) {
        this.user_address = user_address;
    }

    public int getUseris_delete() {
        return useris_delete;
    }

    public void setUseris_delete(int useris_delete) {
        this.useris_delete = useris_delete;
    }

    public String getUser_image() {
        return user_image;
    }

    public void setUser_image(String user_image) {
        this.user_image = user_image;
    }

    public User_table() {
    }

    public User_table(int id, String user_name, String user_pwd, String user_realname, String user_gender, String user_email, String user_phone, String user_id, Date user_birthdate, String user_address, int useris_delete, String user_image) {
        this.id = id;
        this.user_name = user_name;
        this.user_pwd = user_pwd;
        this.user_realname = user_realname;
        this.user_gender = user_gender;
        this.user_email = user_email;
        this.user_phone = user_phone;
        this.user_id = user_id;
        this.user_birthdate = user_birthdate;
        this.user_address = user_address;
        this.useris_delete = useris_delete;
        this.user_image = user_image;
    }

    @Override
    public String toString() {
        return "User_table{" +
                "id=" + id +
                ", user_name='" + user_name + '\'' +
                ", user_pwd='" + user_pwd + '\'' +
                ", user_realname='" + user_realname + '\'' +
                ", user_gender='" + user_gender + '\'' +
                ", user_email='" + user_email + '\'' +
                ", user_phone='" + user_phone + '\'' +
                ", user_id='" + user_id + '\'' +
                ", user_birthdate=" + user_birthdate +
                ", user_address='" + user_address + '\'' +
                ", useris_delete=" + useris_delete +
                ", user_image='" + user_image + '\'' +
                '}';
    }


}
